package com.kingyun.gpsinspection.purificationservice.facade.model.jsm;

import com.kingyun.gpsinspection.purificationservice.common.poi.ExcelVOAttribute;
import com.kingyun.gpsinspection.purificationservice.common.poi.Step.StepPic;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 操作单元步骤及一站一案操作步骤类
 * @ColFlag(value="A") ：Excel解析注解
 */

public class SingleWorkStep extends BootstrapSearchBean implements Serializable {
    private static final long serialVersionUID = -2893283589627519535L;
    private String stepId;
    private String cellId;
    private String workContentId;
    @ExcelVOAttribute(name = "操作步骤名", column = "B")
    private String stepName;
    @ExcelVOAttribute(name = "潜在风险", column = "D")
    private String potentialRisk;
    @ExcelVOAttribute(name = "控制措施", column = "E")
    private String controlMeasures;
    @ExcelVOAttribute(name = "要点提示", column = "F")
    private String keyPoint;

    private String creatorId;

    private String createTime;

    private String modifierId;

    private String modifyTime;
    @ExcelVOAttribute(name = "步骤类型", column = "C")
    private Integer stepType;

    private String stepTypeName;

    @ExcelVOAttribute(name = "步骤索引", column = "A")
    private Integer stepIndex;

    private Integer status;

    private String parentStepName;

    private BigDecimal version;

    private Integer isImportant;

    private String rfid;


    private Integer hasPic;

    private String category;

    private List<String> chidCategory;


    private String dataItem;
    private int num;

    private int avgExecuteDuring;

    private List<StepPic> pics;

    private Integer categoryIndex;

    public BigDecimal getVersion() {
        return version;
    }

    public void setVersion(BigDecimal version) {
        this.version = version;
    }

    public SingleWorkStep(){}

    public SingleWorkStep(Integer stepIndex,String workContentId){
        this.stepIndex = stepIndex;
        this.workContentId = workContentId;
    }
    public SingleWorkStep(Integer stepIndex,String workContentId,BigDecimal version){
        this.stepIndex = stepIndex;
        this.workContentId = workContentId;
        this.version = version;
    }
    public SingleWorkStep(String cellId,Integer stepIndex){
        this.stepIndex = stepIndex;
        this.cellId = cellId;
    }
    public SingleWorkStep(String cellId,Object object){
        this.cellId = cellId;
    }

    public SingleWorkStep(String workContentId){
        this.workContentId = workContentId;
    }

    public String getParentStepName() {
        return parentStepName;
    }

    public void setParentStepName(String parentStepName) {
        this.parentStepName = parentStepName;
    }

    public String getStepTypeName() {
        return stepTypeName;
    }

    public void setStepTypeName(String stepTypeName) {
        this.stepTypeName = stepTypeName;
    }

    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId == null ? null : stepId.trim();
    }

    public String getCellId() {
        return cellId;
    }

    public void setCellId(String cellId) {
        this.cellId = cellId == null ? null : cellId.trim();
    }

    public String getStepName() {
        return stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName == null ? null : stepName.trim();
    }

    public String getPotentialRisk() {
        return potentialRisk;
    }

    public void setPotentialRisk(String potentialRisk) {
        this.potentialRisk = potentialRisk == null ? null : potentialRisk.trim();
    }

    public String getControlMeasures() {
        return controlMeasures;
    }

    public void setControlMeasures(String controlMeasures) {
        this.controlMeasures = controlMeasures == null ? null : controlMeasures.trim();
    }

    public String getKeyPoint() {
        return keyPoint;
    }

    public void setKeyPoint(String keyPoint) {
        this.keyPoint = keyPoint == null ? null : keyPoint.trim();
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId == null ? null : creatorId.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId == null ? null : modifierId.trim();
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStepType() {
        return stepType;
    }

    public void setStepType(Integer stepType) {
        this.stepType = stepType;
    }

    public Integer getStepIndex() {
        return stepIndex;
    }

    public void setStepIndex(Integer stepIndex) {
        this.stepIndex = stepIndex;
    }

    public String getWorkContentId() {
        return workContentId;
    }

    public void setWorkContentId(String workContentId) {
        this.workContentId = workContentId == null ? null : workContentId.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsImportant() {
        return isImportant;
    }

    public void setIsImportant(Integer isImportant) {
        this.isImportant = isImportant;
    }

    public Integer getHasPic() {
        return hasPic;
    }

    public void setHasPic(Integer hasPic) {
        this.hasPic = hasPic;
    }

    public String getRfid() {
        return rfid;
    }

    public void setRfid(String rfid) {
        this.rfid = rfid;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public List<String> getChidCategory() {
        return chidCategory;
    }

    public void setChidCategory(List<String> chidCategory) {
        this.chidCategory = chidCategory;
    }



    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getDataItem() {
        return dataItem;
    }

    public void setDataItem(String dataItem) {
        this.dataItem = dataItem;
    }

    public List<StepPic> getPics() {
        return pics;
    }

    public void setPics(List<StepPic> pics) {
        this.pics = pics;
    }

    public int getAvgExecuteDuring() {
        return avgExecuteDuring;
    }

    public void setAvgExecuteDuring(int avgExecuteDuring) {
        this.avgExecuteDuring = avgExecuteDuring;
    }

    public Integer getCategoryIndex() {
        return categoryIndex;
    }

    public void setCategoryIndex(Integer categoryIndex) {
        this.categoryIndex = categoryIndex;
    }
}